package net.lab1024.sa.admin.module.users.usage.domain.form;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.sql.Timestamp;

@Data
public class ApprovalFrom {


    @Schema(description = "耗材ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "耗材ID 不能为空")
    private Integer materialId;

    @Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "数量 不能为空")
    private Integer quantity;

    @Schema(description = "用途，主要包括实训耗材、维修配件、竞赛训练等", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "用途，主要包括实训耗材、维修配件、竞赛训练等 不能为空")
    private String purpose;

    @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "备注 不能为空")
    private String remark;
    @Schema(description = "领用人", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "领用人 不能为空")
    private int usageUser;
    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "id 不能为空")
    private Integer id;
    @Schema(description = "实训部", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private Integer trainingDepartment;
    @Schema(description = "仓库管理员", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private Integer  warehouseManager;





}
